// The entry file of your WebAssembly module.
// sin_sum1.ts
export function calculateSinSum(): f64 {
  // Generate an array of numbers from 1 to 1000
  const numbers: Array<i32> = [];
  for (let i = 0; i < 1000; i++) {
    numbers.push(i + 1);
  }

  // Calculate the sum of the sine values
  let sum: f64 = 0;
  for (let i = 0; i < numbers.length; i++) {
    sum += Math.sin(numbers[i]);
  }

  return sum;
}